package cn.yujiago.miaosha.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import java.io.Serializable;

@Data
public class User implements Serializable {

    private Long id;
    private String username;
    @JSONField(serialize = false)   // redis的序列化器是fastjson
    @JsonIgnore                     // springmvc的序列化器是jackson
    private String password;
    private String nickname;
    private String phone;
    private String email;

}
